home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / realpath.z / realpath
Text File  |  1998-10-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. RRRREEEEAAAALLLLPPPPAAAATTTTHHHH((((1111))))                                                        RRRREEEEAAAALLLLPPPPAAAATTTTHHHH((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      realpath - prints the real file name
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////lllliiiibbbb////ddddeeeesssskkkkttttoooopppp////rrrreeeeaaaallllppppaaaatttthhhh _p_a_t_h
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _r_e_a_l_p_a_t_h provides command-line access to the realpath(3C) library
  16.      routine.  _r_e_a_l_p_a_t_h uses the realpath(3C) library routine to resolve all
  17.      links, symbolic links, and references to ``.'' and ``..'' in _p_a_t_h and
  18.      prints the result to stdout.  If the realpath(3C) call fails for any
  19.      reason, _p_a_t_h is printed and a non-zero exit status is returned.
  20.  
  21.      The _r_e_a_l_p_a_t_h command is intended for use by developers who need access to
  22.      absolute pathnames for their FTR rules.
  23.  
  24. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  25.      Suppose that /usr/people/guest is a symlink to
  26.      /otherdisk/usr/people/guest and that the current working directory is
  27.      /usr/people/guest.
  28.  
  29.      % /usr/lib/desktop/realpath /usr/people/guest/.profile
  30.      /otherdisk/usr/people/guest/.profile
  31.      % echo $status
  32.      0
  33.  
  34.      % /usr/lib/desktop/realpath ../guest/.profile
  35.      /otherdisk/usr/people/guest/.profile
  36.      % echo $status
  37.      0
  38.  
  39.      % /usr/lib/desktop/realpath aBadFileName
  40.      aBadFileName
  41.      % echo $status
  42.      255
  43.  
  44. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  45.      realpath(3C), readlink(1)
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.